package com.yami.shop.rights.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yami.shop.common.util.PageParam;
import com.yami.shop.rights.common.dto.RightsRecordDto;
import com.yami.shop.rights.common.model.RightsRecord;
import org.apache.ibatis.annotations.Param;

public interface RightsRecordMapper extends BaseMapper<RightsRecord> {

    // 分页查询核销记录
    IPage<RightsRecordDto> getRightsUserRecord(PageParam<RightsRecordDto> page, @Param("userId") String userId,@Param("type") String type);

    IPage<RightsRecordDto> getRightsUserVerificationRecord(PageParam<RightsRecordDto> page,@Param("userId") String userId,@Param("type") String type);
}
